package com.pactera.bledemo.base

import android.bluetooth.BluetoothAdapter
import android.bluetooth.BluetoothDevice
import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.pactera.library.bluetooth.Ble

/**
 * @author ypk
 * 创建日期：2021/9/10  9:35
 * 描述：
 */
open class BaseActivity : AppCompatActivity() {
    var TAG: String = ""
    var mBluetoothAdapter: BluetoothAdapter? = null
    lateinit var ble: Ble
    lateinit var mActivity: BaseActivity
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        TAG = this.javaClass.simpleName;
        mActivity = this
        ble = Ble.getInstance(this)
        mBluetoothAdapter = ble.getDefaultAdapter()
    }
}